import request from '@/utils/request'
export default {
  //添加
  add (data) {
    return request({
      url: '/portalWebsite/loadPage/add',
      method: 'POST',
      data
    })
  },
  //修改
  edit (data) {
    return request({
      url: '/portalWebsite/loadPage/edit',
      method: 'POST',
      data
    })
  },
  //列表查询
  queryList (params) {
    return request({
      url: '/portalWebsite/loadPage/queryList',
      method: 'get',
      params
    })
  },
  //分页查询
  queryPageList (params) {
    return request({
      url: '/portalWebsite/loadPage/queryPageList',
      method: 'get',
      params
    })
  },
  //主键删除接口
  del (id) {
    return request({
      url: '/portalWebsite/loadPage/del',
      method: 'post',
      data: {
        loadPageId: id
      }
    })
  },
  //主键批量删除接口
  delList (idList) {
    return request({
      url: '/portalWebsite/loadPage/delList',
      method: 'post',
      data: {
        loadPageIdList: idList
      }
    })
  },
  //显示隐藏
  release (data) {
    return request({
      url: '/portalWebsite/loadPage/release',
      method: 'post',
      data
    })
  }
}